/**
 *  业扩管理
 * @author litao
 */

import { baseUrl } from '../url';
import { RequestOptions, request2 } from '../request1';
import { YhYwJbxx } from '../tables/YhYwJbxx';
import { YhJbxx } from "../tables/YhJbxx"
import { SysFiles } from "../tables/SysFiles";
import { SysZfdm } from '../tables/SysZfdm';



interface Required {
  jbxx : {
    lxsj ?: string
    yhmc ?: string
    yyhmc ?: string
    lxr ?: string
    zjbh ?: string
    yhdz ?: string
    yhbh ?: string
    lxdh ?: string
    ydqzt ?: string
    dqzt ?: string
    lxrsfzh ?: string
    ygddy ?: string
    gddy ?: string
    yydlb ?: string
    ydlb ?: string
    yjbflb ?: string
    jbflb ?: string
  }
  nsxx ?: {
    nsrmc ?: string
    nsrsbh ?: string
    nsrdz ?: string
    nsrdh ?: string
    nsrkhh ?: string
    nsryhzh ?: string
    qylx ?: string
    frxm ?: string
    frdh ?: string
  }
  sfzzm ?: SysFiles
  sfzfm ?: SysFiles
  frsfzzm ?: SysFiles
  frsfzfm ?: SysFiles
  kfyh ?: SysFiles
  wqz ?: SysFiles
  yyzz ?: SysFiles
  dzqm ?: SysFiles
  yhbh ?: string
  lxsj ?: string
  sm ?: string
  btjls ?: any
}
//居民新装
export function HlwJuMinXinZhuang(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwJuMinXinZhuang`, showloading: true }));
}
//暂拆
export function HlwZanTing(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwZanTing`, showloading: true }));
}
//暂拆恢复
export function hlwZanTingHuiFu(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwZanTingHuiFu`, showloading: true }));
}
//报停记录
export function YhYwBtjlQuery(options : RequestOptions<YhJbxx, YhJbxx[]>) {
  request2<YhJbxx, YhJbxx[]>(Object.assign(options, { data: {btjl : options?.data} , url: baseUrl + "/bspsd/v2/ykgl/YhYwBtjlQuery" }))
}
//移换表
export function HlwYiHuanBiao(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwYiHuanBiao`, showloading: true }));
}
//临转永
export function HlwLinZhuanYong(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwLinZhuanYong`, showloading: true }));
}
//临时减容
export function HlwLinShiJianRong(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwLinShiJianRong`, showloading: true }));
}
//永久减容
export function HlwJianRong(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwJianRong`, showloading: true }));
}
//恢复减容
export function HlwJianRongHuiFu(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwJianRongHuiFu`, showloading: true }));
}

//非居民低压新装
export function HlwFeiJuMinXinZhuang(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwFeiJuMinXinZhuang`, showloading: true }));
}
//高压新装
export function HlwGaoYaXinZhang(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwGaoYaXinZhang`, showloading: true }));
}
//更名
export function HlwGengMing(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwGengMing`, showloading: true }));
}
//过户
export function HlwGuoFu(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwGuoFu`, showloading: true }));
}
//销户
export function HlwXiaoFu(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwXiaoFu`, showloading: true }));
}
//查询用电类别
export function GetAllYdlb(options : RequestOptions<{ jgbm : {} }, SysZfdm[]>) {
  request2<{ jgbm : {} }, SysZfdm[]>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/dfzw/GetAllYdlb` }));
}

//改类
export function HlwGaiLei(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwGaiLei`, showloading: true }));
}
//改压
export function HlwGaiYa(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwGaiYa`, showloading: true }));
}
//基本费方式变更
export function HlwJiBenFeiFangShiBianGeng(options : RequestOptions<Required, YhYwJbxx>) {
  request2<Required, YhYwJbxx>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/ykgl/HlwJiBenFeiFangShiBianGeng`, showloading: true }));
}